<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:U('AdminCard/index')}">卡片列表</a></li>

			<li class="active"><a href="javascript:;" target="_self">金额记录</a></li>
		</ul>
        <form class="well form-search" id="form_search" method="post" action="{:U('AdminCard/price_detail')}">
			<input type="hidden" name="s_download" id="s_download" value="0"/>
			<input type="hidden" name="id" id="id" value="{$card.id}"/>
			<a class="btn btn-primary" style="float: right;margin-right:15px;margin-bottom:10px;" href="javascript:downloadExcel(1);">导出报表</a>
			<table class="table table-bordered">
				<tr>
					<td colspan="4">
						卡号：{$card.number}
					</td>
				</tr>
				<tr>
					<td >充值总金额:{$recharge_price}</td>
					<td >消费总金额:{$sale_price}</td>
					<td >退款总金额:{$refund_price}</td>
					<td >当前余额:{$card.balance}</td>
				</tr>
			</table>

        </form>

		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">账单号</th>
						<th width="50">金额</th>
						<th width="50">操作后余额	</th>
						<th width="50">类型	</th>
						<th width="100">操作时间</th>
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
					<td><b>{$vo.number}</b></td>
					<td>{$vo.price}</td>
					<td>{$vo.after_balance}</td>
					<td>{$vo.remark}</td>

					<td>{:date("Y-m-d H:i:s",$vo['create_time'])}</td>
				</tr>
				</foreach>

			</table>

		</form>
	</div>
	<script src="__PUBLIC__/js/common.js?1"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminCard/index',$formget)}";
			}
		}

	</script>
</body>
</html>